package query.python;

import cn.edu.buaa.neo.codegraphql.dsl.lib.engine.QueryEngine;
import cn.edu.buaa.neo.codegraphql.dsl.lib.format.JsonResultFormatter;
import cn.edu.buaa.neo.query.python.CWE_022.TaintedPath;
import cn.edu.buaa.neo.query.python.CWE_094.CodeInjection;
import cn.edu.buaa.neo.query.python.CWE_215.FlaskDebug;
import cn.edu.buaa.neo.query.python.CWE_377.InsecureTempFile;
import cn.edu.buaa.neo.query.python.CWE_943.NoSqlInjection;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class BatchTest {
    @Test
    public void batchTest() {
        QueryEngine.getInstance()
                .withFormatter(new JsonResultFormatter().minified())
                .withStyle("json-compact")
                .execute(new TaintedPath())
                .execute(new CodeInjection())
                .execute(new FlaskDebug())
                .execute(new InsecureTempFile())
                .execute(new NoSqlInjection())
                .close();
        Assertions.assertTrue(true);
    }
}
